<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: IWDG</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">模块</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">IWDG<div class="ingroups"><a class="el" href="group___w_b32_l003___std_periph___driver.html">WB32L003_StdPeriph_Driver</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>IWDG driver modules  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
模块</h2></td></tr>
<tr class="memitem:group___i_w_d_g___exported___constants"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i_w_d_g___exported___constants.html">IWDG_Exported_Constants</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___i_w_d_g___private___functions"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i_w_d_g___private___functions.html">IWDG_Private_Functions</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:gae33b303358ef1fc063e68ac9814593fe"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>IWDG_ENABLE_WRITE_ACCESS</b>()</td></tr>
<tr class="separator:gae33b303358ef1fc063e68ac9814593fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5a469a7b3cebaa320a46ab7e03ccabc9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>IWDG_DISABLE_WRITE_ACCESS</b>()</td></tr>
<tr class="separator:ga5a469a7b3cebaa320a46ab7e03ccabc9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga4a2aa88ef15257029e8163e84e9fc23b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i_w_d_g.html#ga4a2aa88ef15257029e8163e84e9fc23b">IWDG_Init</a> (uint32_t IWDG_Config, FunctionalState NewState)</td></tr>
<tr class="memdesc:ga4a2aa88ef15257029e8163e84e9fc23b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the IWDG according to the specified IWDG_Config.  <a href="#ga4a2aa88ef15257029e8163e84e9fc23b">更多...</a><br /></td></tr>
<tr class="separator:ga4a2aa88ef15257029e8163e84e9fc23b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2fb08178118be6235d12f1bb56151cfe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i_w_d_g.html#ga2fb08178118be6235d12f1bb56151cfe">IWDG_SetReload</a> (uint32_t Reload)</td></tr>
<tr class="memdesc:ga2fb08178118be6235d12f1bb56151cfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets IWDG Reload value.  <a href="#ga2fb08178118be6235d12f1bb56151cfe">更多...</a><br /></td></tr>
<tr class="separator:ga2fb08178118be6235d12f1bb56151cfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7147ebabdc3fef97f532b171a4e70d49"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i_w_d_g.html#ga7147ebabdc3fef97f532b171a4e70d49">IWDG_ReloadCounter</a> (void)</td></tr>
<tr class="memdesc:ga7147ebabdc3fef97f532b171a4e70d49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reloads IWDG counter with value defined in the reload register.  <a href="#ga7147ebabdc3fef97f532b171a4e70d49">更多...</a><br /></td></tr>
<tr class="separator:ga7147ebabdc3fef97f532b171a4e70d49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf8d8dd6ada0602470b2cc01e42fa5840"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i_w_d_g.html#gaf8d8dd6ada0602470b2cc01e42fa5840">IWDG_Start</a> (void)</td></tr>
<tr class="memdesc:gaf8d8dd6ada0602470b2cc01e42fa5840"><td class="mdescLeft">&#160;</td><td class="mdescRight">IWDG starts running.  <a href="#gaf8d8dd6ada0602470b2cc01e42fa5840">更多...</a><br /></td></tr>
<tr class="separator:gaf8d8dd6ada0602470b2cc01e42fa5840"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1b0d44da803365309374a9cc3fb5bc9d"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i_w_d_g.html#ga1b0d44da803365309374a9cc3fb5bc9d">IWDG_GetITStatus</a> (uint32_t IWDG_IT)</td></tr>
<tr class="memdesc:ga1b0d44da803365309374a9cc3fb5bc9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified IWDG interrupt flag is set or not.  <a href="#ga1b0d44da803365309374a9cc3fb5bc9d">更多...</a><br /></td></tr>
<tr class="separator:ga1b0d44da803365309374a9cc3fb5bc9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga373f5fee873b0cf9a660af97120f42fa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i_w_d_g.html#ga373f5fee873b0cf9a660af97120f42fa">IWDG_ClearITPendingBit</a> (uint32_t IWDG_IT)</td></tr>
<tr class="memdesc:ga373f5fee873b0cf9a660af97120f42fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the IWDG's interrupt pending bits.  <a href="#ga373f5fee873b0cf9a660af97120f42fa">更多...</a><br /></td></tr>
<tr class="separator:ga373f5fee873b0cf9a660af97120f42fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>IWDG driver modules </p>
<h2 class="groupheader">宏定义说明</h2>
<a id="ga5a469a7b3cebaa320a46ab7e03ccabc9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5a469a7b3cebaa320a46ab7e03ccabc9">&#9670;&nbsp;</a></span>IWDG_DISABLE_WRITE_ACCESS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IWDG_DISABLE_WRITE_ACCESS</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span> {                              \</div><div class="line">    IWDG-&gt;UNLOCK = <a class="code" href="group___i_w_d_g___exported___constants.html#ga7066f25d78e576a4b4f208152ec5f001">IWDG_LOCK_KEY</a>;   \</div><div class="line">  } <span class="keywordflow">while</span> (0)</div><div class="ttc" id="group___i_w_d_g___exported___constants_html_ga7066f25d78e576a4b4f208152ec5f001"><div class="ttname"><a href="group___i_w_d_g___exported___constants.html#ga7066f25d78e576a4b4f208152ec5f001">IWDG_LOCK_KEY</a></div><div class="ttdeci">#define IWDG_LOCK_KEY</div><div class="ttdef"><b>Definition:</b> wb32l003_iwdg.h:40</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="gae33b303358ef1fc063e68ac9814593fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae33b303358ef1fc063e68ac9814593fe">&#9670;&nbsp;</a></span>IWDG_ENABLE_WRITE_ACCESS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IWDG_ENABLE_WRITE_ACCESS</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line"><span class="keywordflow">do</span> {                              \</div><div class="line">    IWDG-&gt;UNLOCK = <a class="code" href="group___i_w_d_g___exported___constants.html#gae16ce692c641b7b1b254c0ce491e7155">IWDG_UNLOCK_KEY</a>; \</div><div class="line">  } <span class="keywordflow">while</span> (0)</div><div class="ttc" id="group___i_w_d_g___exported___constants_html_gae16ce692c641b7b1b254c0ce491e7155"><div class="ttname"><a href="group___i_w_d_g___exported___constants.html#gae16ce692c641b7b1b254c0ce491e7155">IWDG_UNLOCK_KEY</a></div><div class="ttdeci">#define IWDG_UNLOCK_KEY</div><div class="ttdoc">IWDG Key Register value</div><div class="ttdef"><b>Definition:</b> wb32l003_iwdg.h:39</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="ga373f5fee873b0cf9a660af97120f42fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga373f5fee873b0cf9a660af97120f42fa">&#9670;&nbsp;</a></span>IWDG_ClearITPendingBit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IWDG_ClearITPendingBit </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>IWDG_IT</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the IWDG's interrupt pending bits. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">IWDG_IT</td><td>specifies the interrupt pending bit to clear. This parameter can be a combination of the following values: <ul>
<li>IWDG_IT_GOVF: The overflow of the IWDG was interrupted </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None.</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga1b0d44da803365309374a9cc3fb5bc9d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1b0d44da803365309374a9cc3fb5bc9d">&#9670;&nbsp;</a></span>IWDG_GetITStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FlagStatus IWDG_GetITStatus </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>IWDG_IT</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether the specified IWDG interrupt flag is set or not. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">IWDG_IT</td><td>specifies the interrupt flag to check. This parameter can be one of the following values: <ul>
<li>IWDG_IT_GOVF: The overflow of the IWDG was interrupted </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of IWDG_IT (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga4a2aa88ef15257029e8163e84e9fc23b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4a2aa88ef15257029e8163e84e9fc23b">&#9670;&nbsp;</a></span>IWDG_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IWDG_Init </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>IWDG_Config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize the IWDG according to the specified IWDG_Config. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">IWDG_Config</td><td>Specify configuration parameters for the IWDG. This parameter can be any combination of the following values: <ul>
<li>IWDG_MODE_RESET </li>
<li>IWDG_MODE_INT </li>
<li>IWDG_IT_DISABLE </li>
<li>IWDG_IT_ENABLE </li>
</ul>
</td></tr>
    <tr><td class="paramname">NewState</td><td>new state of the IWDG peripheral. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga7147ebabdc3fef97f532b171a4e70d49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7147ebabdc3fef97f532b171a4e70d49">&#9670;&nbsp;</a></span>IWDG_ReloadCounter()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IWDG_ReloadCounter </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reloads IWDG counter with value defined in the reload register. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga2fb08178118be6235d12f1bb56151cfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2fb08178118be6235d12f1bb56151cfe">&#9670;&nbsp;</a></span>IWDG_SetReload()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IWDG_SetReload </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Reload</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets IWDG Reload value. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Reload</td><td>specifies the IWDG Reload value. This parameter must be a number between 0 and 0xFFFFF. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaf8d8dd6ada0602470b2cc01e42fa5840"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf8d8dd6ada0602470b2cc01e42fa5840">&#9670;&nbsp;</a></span>IWDG_Start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IWDG_Start </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>IWDG starts running. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
